package com.ct.deadlockdetetor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ct.deadlockdetetor.domain.allocation.ResourceAllocation;
import com.ct.deadlockdetetor.domain.allocation.dto.AllocationQueryDTO;
import com.ct.deadlockdetetor.domain.allocation.vo.AllocationVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ResourceAllocationMapper extends BaseMapper<ResourceAllocation> {
    List<Integer> selectByResourceId(Integer resourceId);

    List<AllocationVO> selectAllocationList(AllocationQueryDTO allocationQueryDTO);

    List<ResourceAllocation> selectByProcessId(Integer processId);
}
